@layout("/common/_container.html"){
<link href="${ctxPath}/static/css/doctor/followStyle.css?v=20200628" rel="stylesheet">
<div style="display: none">
    <input type="hidden" id="id" value="${consultantInfo.id}">
    <input type="hidden" id="doctorVisitId" value="${doctorRevisitInfo.id}">
    <input type="hidden" id="reservationsId" value="${consultantInfo.reservationsId}">
    <input type="hidden" id="customerId" value="${customerId}">
    <input type="hidden" id="revisitStatusValue" value="${doctorRevisitInfo.revisitStatus}">
    <input type="hidden" id="arrivalStore" value="${arrivalStore}">
    <input type="hidden" id="doctorValue" value="${createName}">
</div>
<div class="doctorLookedInfoForm">
    <div style="background: #6090b8;color: white;padding: 5px 10px;">查看随访</div>
    <div class="followContents">
        <div class="followLeft" style="border-right: 1px solid #dddddd;">
            <div class="followHeader">
                <div>
                    <div>患者姓名</div>
                    <div>病历号</div>
                    <div>初诊日期</div>
                    <div>患者来源</div>
                    <div>电话号码</div>
                </div>
                <div style="padding-left: 0;">
                    <div>${consultantInfo.customerName}</div>
                    <div>${consultantInfo.medicalRecordNumber}</div>
                    <div>${consultantInfo.firstVisitDate}</div>
                    <div>${consultantInfo.oneChannel}</div>
                    <div>${consultantInfo.customerPhone}</div>
                </div>
            </div>
            <div class="followLeftContents">
                <div>
                    <span>随访时间：</span>
                    <div><input id="revisitTime" class="inpStyle" value="${doctorRevisitInfo.revisitTime}" autocomplete="off" type="text" onclick="laydate({istiem:true,format:'YYYY-MM-DD'})"></div>
                </div>
                <div>
                    <span>随访医生：</span>
                    <div><select id="doctor" class="inpStyle" name="doctor">
                        <option value="">--请选择医生--</option>
                        @for(str in doctorList){
                        <option value="${str.doctor}">${str.doctor}</option>
                        @}
                    </select></div>
                </div>
                <div>
                    <span>创建人：</span>
                    <div><input id="createName" disabled="disabled" class="inpStyle" value="${createName}"></div>
                </div>
                <div>
                    <span>随访人员：</span>
                    <div><select id="revisit" class="inpStyle" name="revisit">
                        <option value="">--请选择医生--</option>
                        @for(str in doctorList){
                        <option value="${str.doctor}">${str.doctor}</option>
                        @}
                    </select></div>
                </div>
                <div>
                    <span>内容模板：</span>
                    <div>
                        <div class="btn-group" style="position: relative">
                            <button type="button" class="btn" onclick="addsf()" style="position: absolute;left: 100px;top: 0;background: white">添加模板</button>
                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">内容模板<span class="caret"></span></button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenu2" style="left: 0;" id="dropdownMenu2Ul"></ul>
                        </div>
                    </div>
                </div>
                <div style="align-items: normal;">
                    <span>随访内容：</span>
                    <div><textarea id="remarks" name="remarks" style="width: 200px;;height: 80px;padding-left: 5px;">${doctorRevisitInfo.remarks}</textarea></div>
                </div>
                <div>
                    <span>结果模板：</span>
                    <div>
                        <div class="btn-group" style="position: relative">
                            <button type="button" class="btn" onclick="addjg()" style="position: absolute;left: 100px;top: 0;background: white">添加模板</button>
                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">结果模板<span class="caret"></span></button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenu1" style="left: 0;" id="dropdownMenu1Ul"></ul>
                        </div>
                    </div>
                </div>
                <div style="align-items: normal;">
                    <span>随访结果：</span>
                    <div><textarea id="revisitContent" name="revisitContent" style="width: 200px;height: 80px;padding-left: 5px;">${doctorRevisitInfo.revisitContent}</textarea></div>
                </div>
            </div>
            <div class="btnBox" style="padding: 0 0 30px 40px;">
                <button class="btn" type="button" id="submitLZ">再随访</button>
                <button class="btn" type="button" id="cancle" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name))">关闭</button>
            </div>
        </div>
        <div class="followRight">
            <div class="followRightHeader">
                <button type="button" class="btn Selection">病历记录</button>
                <button type="button" class="btn">随访记录</button>
            </div>
            <div class="followRightContents">
                <div id="accordion">
                    @for(item in DoctorDiagnosisInfoList){
                    @if(item.arrivalStatus== 2 || item.arrivalStatus== 3 || item.arrivalStatus== 4 || item.arrivalStatus== 5){
                    <h3 style="background: #fff5e4;"><span>时间：${item.arrivalTime}</span><span style="float: right;width: 80px;">${item.status}</span></h3>
                    @}
                    @if(item.arrivalStatus== 1 || item.arrivalStatus== 6 || item.arrivalStatus== 9 || item.arrivalStatus== 10){
                    <h3 style="background: #fff5e4;"><span>时间：${item.startTime}</span><span style="float: right;width: 80px;">${item.status}</span></h3>
                    @}
                    <div class="accordion" style="padding: 10px 15px;">
                        <ul class="ule">
                            <li><span>医助/护士：${item.nurse}</span><span style="float: right;width: 132px;">咨询师：${item.fieldTc}</span></li>
                            <li><span>预约项目：</span><span>${item.appointmentPayService}</span><span style="float: right;width: 132px;">医生：${item.doctor}</span></li>
                            <li><span>备注：</span><span>${item.remarksReservation}</span></li>
                        </ul>
                        <div style="border-top: 1px solid #cccccc;padding-top: 5px;">
                            <ul class="ule">
                                <li style="display: flex"><span>主诉：</span><span style="flex: 1;">${item.zhushu}</span></li>
                                <li style="display: flex"><span>医嘱：</span><span style="flex: 1;">${item.doctorAdvice}</span></li>
                                <li style="display: flex"><span>备注：</span><span style="flex: 1;">${item.remarkss}</span></li>
                            </ul>
                        </div>
                    </div>
                    @}
                </div>
                <div style="display: none" id="accordions">
                    @for(item in doctorRevisitInfoList){
                    <div class="accordions">
                        <p><span>${item.revisitTime}&nbsp;</span>
                            @if(item.revisitStatus == 1){
                            <span>状态：待计划</span>
                            @}
                            @if(item.revisitStatus == 2){
                            <span>状态：随访完成</span>
                            @}
                            @if(item.revisitStatus == 3){
                            <span>状态：随访未完成</span>
                            @}
                            @if(item.revisitStatus == 4){
                            <span>状态：随访取消</span>
                            @}
                        </p>
                        <div class="record">
                            <div><span>诊所</span><span>${item.outpatientName}</span></div>
                            <div><span>医生</span><span>${item.doctor}</span></div>
                            <div><span>回访人</span><span>${item.revisit}</span></div>
                            <div><span>创建人</span><span>${item.createName}</span></div>
                        </div>
                        <div class="record" style="border-top: 1px solid #cccccc;padding-top: 5px;">
                            <div><span>内容</span><span>${item.remarks}</span></div>
                            <div><span>结果</span><span>${item.revisitContent}</span></div>
                        </div>
                    </div>
                    @}
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/fulljquery-ui.min.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/doctorLooked/doctorLooked_info.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/doctorLooked/doctorLookedFollow.js?v=20200628"></script>
@}